import axios from 'axios'
export default {
  data() {
    return {
      baseURL: 'http://43.138.15.137:7000/api/private/v1',
      token: localStorage.getItem('token')
    }
  },
  methods: {
    $http() {
      return {
        get: (url) => axios.get(this.baseURL + url, { headers: { 'Authorization': this.token } })
      }
    }
  }
}